package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.TworkFormBaseEty;
import com.xhh.nphm.system.mapper.TelWFManageDao;
import com.xhh.nphm.system.service.ITelWFManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class TelWFManageServiceImpl extends ServiceImpl<TelWFManageDao, TworkFormBaseEty> implements ITelWFManageService {
    @Autowired
    private TelWFManageDao telWFManageDao;

    /**
     * 承办单位处理中
     * @param tworkFormBaseEty
     * @return
     */
    @Override
    public List<TworkFormBaseEty> listSendOver(TworkFormBaseEty tworkFormBaseEty) {
        return telWFManageDao.listSendOver(tworkFormBaseEty);
    }

    /**
     * 待再次整理
     * @param tworkFormBaseEty
     * @return
     */
    @Override
    public List<TworkFormBaseEty> listSecond(TworkFormBaseEty tworkFormBaseEty) {
        return telWFManageDao.listSecond(tworkFormBaseEty);
    }

    @Override
    public int deleteByIds(String[] ids) {
        return telWFManageDao.deleteBatchIds(Arrays.asList(ids));
    }
}
